﻿<phone:PhoneApplicationPage 
    x:Class="Groovy_IM.JoinChatPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False" OrientationChanged="PhoneApplicationPage_OrientationChanged">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <controls:Pivot Title="Groovy IM">
            <!--"Accounts" Item One-->
            <controls:PivotItem Header="Account">
                <ListBox Margin="0,0,-12,0" x:Name="accs" ItemsSource="{Binding Items}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Margin="0,0,0,17" Width="455">
                                <Image Source="{Binding Selected}" Width="64" Height="64" HorizontalAlignment="Left" Tap="TextBlock_Tap" Tag="{Binding Tag}"/>
                                <Image Source="{Binding pProtocol}" Width="64" Height="64" HorizontalAlignment="Left" Tap="TextBlock_Tap" Margin="70,-64,0,0" Tag="{Binding Tag}"/>
                                <TextBlock Text="{Binding Username}" FontSize="32" Margin="140,-55,0,0" Tag="{Binding Tag}" Tap="TextBlock_Tap"/>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PivotItem>

            <!--"Details" Item Two-->
            <controls:PivotItem Header="Room">
                <ListBox x:Name="chatDetails" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="roomWidth">
                            <TextBlock Text="Room Name" HorizontalAlignment="Center" FontSize="{StaticResource PhoneFontSizeLarge}" />
                            <TextBox x:Name="Room" />
                            <TextBlock Text="Room Exchange" HorizontalAlignment="Center" FontSize="{StaticResource PhoneFontSizeLarge}" />
                            <TextBox x:Name="Exchange" Text="4" />
                            <TextBlock Text="Room Type" HorizontalAlignment="Center" FontSize="{StaticResource PhoneFontSizeLarge}" />
                            <TextBox x:Name="Type" Text="10" />
                            <Button Name="btnJoin" Content="Join Chat" Click="btnJoin_Click" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="menuItem1" Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem x:Name="menuItem2" Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->
    
</phone:PhoneApplicationPage>